<div class="content">

	<div class="header">
		<div class="page-title">
                    <div>
                        <h1><i class="icon-group"></i> Group</h1>
                        <h4>Group Permission !</h4>
                    </div>
        </div>		
	</div>

	<div class="container-fluid">
		<div class="row-fluid">

			<div class="btn-toolbar text-right">
				<a href="<?php echo site_url('home/group/add'); ?>" class="btn btn-primary"><i class="icon-plus"></i> New Group</a>			
			</div>
			
            <!-- BEGIN Main Content -->
			<div class="row-fluid">
                    <div class="span12">
                        <div class="box">
                            <div class="box-title">
                                <h3><i class="icon-group"></i>Group Permission</h3>
                            </div>
                            <div class="box-content">
                                <table class="table table-striped table-hover fill-head">
                                    <thead>
                                        <tr>
                                            <th style="width: 50px">#</th>
                                            <th>Group Name</th>
                                            <th style="width: 70px">Level</th>
                                            <th style="width: 70px">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    
                                    <?php
                                    	$i = 1; 
                                    	foreach ($rsGroups as $rowGroup) :
                                    		$url_edit = site_url('home/group/edit/'.$rowGroup['id']);
	                                    	$url_delete = site_url('home/group/delete/'.$rowGroup['id']);
                                    ?>
                                    
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo h($rowGroup['group_name']); ?></td>
                                            <td><?php echo h($rowGroup['level']); ?></td>
                                            <td>
							                    <a href="<?php echo $url_edit; ?>" title="" class="btn btn-small btn-gray"><i class="icon-edit"></i></a>
<!-- 								                    <a data-toggle="modal" href="#myModal" title="" class="btn btn-small btn-danger"><i class="icon-trash"></i></a> -->
							                    <a href="javascript:confimDelete('<?php echo $url_delete; ?>');" title="" class="btn btn-small btn-danger"><i class="icon-trash"></i></a>								                    
                                            </td>
                                        </tr>
                                        
									<?php
											$i++;	 
										endforeach; 
									?>                                        
                                        
                                        
                                    </tbody>
                                </table>
                            
                            </div>
                            
                        </div>
                    </div>
			</div>
			<!-- END Main Content -->
                			
			
		</div>
	</div>
</div>


